package com.ccc.demoboot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ccc.demoboot.pojo.Role;
import com.ccc.demoboot.pojo.Sysusermidrole;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * @Author wz
 * @Date 2024/6/12 8:51
 * @PackageName:com.ccc.demoboot.dao
 * @ClassName: SysusermidroleMapper
*/
public interface SysusermidroleMapper extends BaseMapper<Sysusermidrole> {
    List<Role> select();

    List<Map<String, Object>> selectRoleidJobtype(@Param("roleid") Integer roleid);

    List<Map<String, Object>> selectRoleidDepartment(@Param("roleid") Integer roleid);

    List<Map<String, Object>> selectRoleidPost(@Param("roleid") Integer roleid);

    List<Map<String, Object>> selectRoleidUser(Integer roleid);

    List<Role> selectTj(Role role);

    boolean addCheckListDep(Sysusermidrole sysusermidrole);

    boolean delCheckListDep(Sysusermidrole sysusermidrole);


    boolean delId(String ids);

    boolean addMidrole(@Param("roleid") int roleid, @Param("ids") String ids);
}